import request from '@/utils/request'

// 查询商品统计详情列表
export function listGroupList(query) {
  return request({
    url: '/points/groupList/list',
    method: 'get',
    params: query
  })
}

// 查询商品统计详情详细
export function getGroupList(id) {
  return request({
    url: '/points/groupList/' + id,
    method: 'get'
  })
}

// 新增商品统计详情
export function addGroupList(data) {
  return request({
    url: '/points/groupList',
    method: 'post',
    data: data
  })
}

// 修改商品统计详情
export function updateGroupList(data) {
  return request({
    url: '/points/groupList',
    method: 'put',
    data: data
  })
}

// 删除商品统计详情
export function delGroupList(id) {
  return request({
    url: '/points/groupList/' + id,
    method: 'delete'
  })
}



export function findGroupList(bid) {
  return request({
    url: '/points/groupList/findGroupList?bid=' + bid,
    method: 'get'
  })
}
